//
//  CaseManagerModel.m
//  QuickCure1
//
//  Created by zhouxuanhe on 16/11/1.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "CaseManagerModel.h"

@implementation CaseManagerModel


#pragma mark -
#pragma mark - 接档归档
//归档是一个过程 告诉系统 ,该对象的哪些属性需要存储
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.lbl_name forKey:@"lbl_name"];
    [aCoder encodeObject:self.lbl_idCard forKey:@"lbl_idCard"];
    [aCoder encodeObject:self.lbl_phone forKey:@"lbl_phone"];
    [aCoder encodeObject:self.lbl_time forKey:@"lbl_time"];
    [aCoder encodeObject:self.lbl_diseaseType forKey:@"lbl_diseaseType"];
    [aCoder encodeObject:self.lbl_content forKey:@"lbl_content"];
    [aCoder encodeObject:self.lbl_diseaseDetail forKey:@"lbl_diseaseDetail"];
    [aCoder encodeObject:self.img_pic forKey:@"img_pic"];
    
    
    
}

//反归档 告诉系统,该对象的哪些属性可以获取
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {

        self.lbl_name = [aDecoder decodeObjectForKey:@"lbl_name"];
        self.lbl_idCard = [aDecoder decodeObjectForKey:@"lbl_idCard"];
        self.lbl_phone = [aDecoder decodeObjectForKey:@"lbl_phone"];
        self.lbl_time = [aDecoder decodeObjectForKey:@"lbl_time"];
        self.lbl_diseaseType = [aDecoder decodeObjectForKey:@"lbl_diseaseType"];
        self.lbl_content = [aDecoder decodeObjectForKey:@"lbl_content"];
        self.lbl_diseaseDetail = [aDecoder decodeObjectForKey:@"lbl_diseaseDetail"];
        self.img_pic = [aDecoder decodeObjectForKey:@"img_pic"];
    }
    
    return self;
}


@end
